From 084b9efa6e1e42ac8852ed1845e9f90b07879388 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 13 Jul 2009 01:02:51 +0000 Subject: [PATCH] (internal_self_insert): Check sym by SYMBOLP before calling XSYMBOL (sym). --- src/cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmds.c b/src/cmds.c index 60916705c97..33472b5710b 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -492,7 +492,7 @@ internal_self_insert (c, noautofill) /* If we expanded an abbrev which has a hook, and the hook has a non-nil `no-self-insert' property, return right away--don't really self-insert. */ - if (! NILP (sym) && ! NILP (XSYMBOL (sym)->function) + if (SYMBOLP (sym) && ! NILP (sym) && ! NILP (XSYMBOL (sym)->function) && SYMBOLP (XSYMBOL (sym)->function)) { Lisp_Object prop; -- 2.30.2